// flex 居中
@mixin flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

// flex 两侧居中
@mixin flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

// 设置单行省略号
@mixin ellipse {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 多行文本省略号
@mixin multiline-ellipse($lines: 2) {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: $lines;
  -webkit-box-orient: vertical;
}

// 清除浮动
@mixin clearfix {
  &::after {
    content: '';
    display: block;
    clear: both;
  }
}
